import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import zh from '@angular/common/locales/zh';

import { registerLocaleData } from '@angular/common';
import en from '@angular/common/locales/en';
registerLocaleData(en);

/** 配置 ng-zorro-antd 国际化 **/
import { NZ_I18N, zh_CN } from 'ng-zorro-antd/i18n';
registerLocaleData(zh);
import { NzSwitchModule } from 'ng-zorro-antd/switch';
import { NzTableModule } from 'ng-zorro-antd/table';
import { NzRateModule } from 'ng-zorro-antd/rate';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    NzTableModule,
    NzRateModule,
    NzSwitchModule,

  ],
  declarations: [],
  exports: [
    NzTableModule,
    NzRateModule,
    NzSwitchModule,
    CommonModule,
    FormsModule,
  ],
  providers: [
    { provide: NZ_I18N, useValue: zh_CN }
  ],
})
export class SharedModule { }
